package com.jrx.anytxn.transaction.service;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.customer.entity.TlMarketingRecord;
import com.jrx.anytxn.param.entity.PrOrganizationTable;

import java.io.IOException;
import java.util.List;

public interface IMarketingFileService {
    /**
     * 合并文件
     * @param org
     * @param filePath
     * @param fileName
     * @throws TxnException
     */
    void mergeFile(PrOrganizationTable org, String filePath, String fileName, String fileType) throws IOException;

    /**
     * 生成明细文件信息
     * @param tlMarketingRecord
     * @return
     */
    String createMarketingDetialFileMessage(TlMarketingRecord tlMarketingRecord);

    /**
     * 生成文件
     * @param messageList
     * @param reportingPath
     * @param fileName
     * @throws IOException
     */
    void generatingFile(List<String> messageList, String reportingPath, String fileName, String fileType) throws IOException;

    /**
     * 生成验签文件
     * @param org
     * @param marketFilePath
     * @param marketFileName
     * @throws TxnException
     */
    boolean generatSignFile(PrOrganizationTable org, String marketFilePath, String marketFileName, String signFilePath) throws IOException;

}
